<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>回文数</title>
</head>

<body>
    <script>
        var A = prompt("请输入五位数：");
        var ge = A % 10;
        var shi = A / 10 % 10;
        var qian = A / 1000 % 10;
        var wan = A / 10000;
        if (parseInt(ge) == parseInt(wan) && parseInt(shi) == parseInt(qian)) {
            alert("是回文数！");
        } else {
            alert("不是回文数！");
        }
    </script>
</body>

</html>